import http from "@/api/axios";

//导出模版 - 分页查询
export const getDataApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/page",
    data
  });
};

//获取导出内容
export const getListApi = () => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/getExportFiled"
  });
};

//导出模版-新增
export const addExportTemplateApi = (data: TemplateLibrary.AddForm) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/add",
    data
  });
};

//导出模版-修改
export const updateExportTemplateApi = (data: TemplateLibrary.AddForm) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/update",
    data
  });
};

//导出模版 - 删除
export const deleteExportTemplateApi = (data: TemplateLibrary.AddForm) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/delete",
    data
  });
};

//导出模版 启用修改
export const changeStatusExportTemplateApi = (data: TemplateLibrary.AddForm) => {
  return http({
    method: "post",
    url: "/export/biz/exportTemplate/updateStatus",
    data
  });
};
